﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="OccViewDelete.aspx.vb" Inherits="ccapps.OccViewDelete" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

             <style type="text/css">
	.prompt { BACKGROUND-COLOR: #a2547f; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 20px; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none }


        .button02 {
		     border-style: none;
                 border-color: inherit;
                 border-width: 2px;
                 font-family: Verdana, Arial; 
		         font-size : 10px; 
		         font-weight : bold;
		         color: #336699;
		         padding : 3px;
		         background: url(/ccapps/web/gif/button_new2.gif);
             }
        .button03 {
		     border-style: none;
                 border-color: inherit;
                 border-width: 2px;
                 font-family: Verdana, Arial; 
		         font-size : 10px; 
		         font-weight : bold;
		         color: #336699;
		         padding : 3px;
		         background: url(/ccapps/web/gif/button_new2.gif);
                 float:right;
             }
        .birincisutun {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	text-decoration: none;
	
            padding-left: 10px;
            background-color: #e6e6fa; 
			width:300px;
}
.ikincisutun 
{
	        BACKGROUND-COLOR: #f5f5f5;
            FONT-FAMILY: Arial, Helvetica;
            COLOR: #000000;
            FONT-SIZE: 12px;
            TEXT-DECORATION: none; 
			width:500px;
			border-right:none;
         
} 
.ucuncusutun 
{
	BACKGROUND-COLOR: #f5f5f5;
            FONT-FAMILY: Arial, Helvetica;
            COLOR: #000000;
            FONT-SIZE: 12px;
            TEXT-DECORATION: none;
			width:100px; 
			border-left:none;
			
}
    .text-alan { 
            padding-top:8px; 
            width:250px; 
            height:26px;
            

        }
         		.black_overlay{
			display:none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 1366px;
			height: 768px;
			background-color: black;
			z-index:1001;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=80);
		}
		.white_content {
			display:none;
			position: absolute;
			top: 25%;
			left: 25%;
			width: 50%;
			height: 50%;
			padding: 16px;
			border: 16px solid #930051;
			background-color: white;
			z-index:1002;
			overflow: auto; 
            font-size:large; 
            text-align:center; 
            vertical-align:middle;         
		}


		</style>
        <script type = "text/javascript">
            function Confirm() {
                var confirm_value = document.createElement("INPUT");
                confirm_value.type = "hidden";
                confirm_value.name = "confirm_value";
                document.forms["form1"].submit();
                if (confirm("Devam Etmeniz Halinde OCC Silinecektir?")) {
                    confirm_value.value = "Yes";
                    deneme2()
                } else {
                    confirm_value.value = "No";

                }
                document.forms[0].appendChild(confirm_value);

            }
            function deneme2() {
                setTimeout("uyaricikar()", 1)

            }
            function uyaricikar() {

                if (Page_IsValid == true) {
                    document.getElementById("light").style.display = "block";
                    document.getElementById("fade").style.display = "block";
                }
            }

            
         
    </script>




</head>



<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="ErrorMessage" runat="server" Text=""></asp:Label>
        <table width="900px" id="OCCInfotable"  runat="server">
  <tr>
    <td colspan="3" class="prompt"><asp:label id="lblContextHeader" runat="server">Uzerinde OCC Silme islemi yapilacak aboneyi arayin. Custcode araması customer seviyesi, MSISDN araması hat seviyesi OCC'leri getirir. </asp:label></td>
  </tr>
  <tr>
    <td class="birincisutun">CustCode <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TB_Custcode" ErrorMessage="CustCode alanın dolrulması zorunludur" ValidationGroup="groupCustCode" Font-Size="Large" ForeColor="Red">(*)</asp:RequiredFieldValidator></td>
    <td class="ikincisutun"><asp:textbox id="TB_Custcode"
							runat="server"  Width="385px" CssClass="text-alan" onkeydown = "return (event.keyCode!=13)"></asp:textbox></td>
    <td class="ucuncusutun"><asp:button id="btnCheckCustcode" runat="server" Width="60px" CssClass="button03"
							Text="Getir" ValidationGroup="groupCustCode"></asp:button></td>
  </tr>
  <tr>
    <td class="birincisutun">MSISDN <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TB_MSISDN" ErrorMessage="Format:5051234567" ValidationExpression="^[0-9]+$" Font-Size="Large" ForeColor="Red" ValidationGroup="groupMSISDN">(*)</asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TB_MSISDN" ErrorMessage="MSISDN alanın dolrulması zorunludur" ValidationGroup="groupMSISDN" Font-Size="Large" ForeColor="Red">(*)</asp:RequiredFieldValidator></td>
    <td class="ikincisutun"><asp:textbox id="TB_MSISDN" 
							runat="server"   Width="385px" MaxLength="10" CssClass="text-alan" onkeydown = "return (event.keyCode!=13)"></asp:textbox></td>
    <td class="ucuncusutun"><asp:button id="btnCheckMsisdn" runat="server"  Width="60px" CssClass="button03"
							Text="Getir" ValidationGroup="groupMSISDN"></asp:button></td>
  </tr>
  <tr>
    <td class="birincisutun">Customer ID</td>
    <td class="ikincisutun"><asp:label id="lblCustomerID" runat="server" Text="N/A" ></asp:label></td>
    <td class="ucuncusutun">&nbsp;</td>
  </tr>
  <tr>
    <td class="birincisutun">Abone</td>
    <td class="ikincisutun"><asp:label id="lblAbone" runat="server" Text="N/A"></asp:label></td>
    <td class="ucuncusutun">&nbsp;</td>
  </tr>
  <tr>
    <td class="birincisutun">CoID</td>
    <td class="ikincisutun"><asp:label id="lblCOID" runat="server" Text="N/A"></asp:label>&nbsp;<asp:Label ID="Label4" runat="server" Text=" " Visible="false"></asp:Label></td>
    <td class="ucuncusutun">&nbsp;</td>
  </tr>
  <tr>
    <td class="birincisutun">OCC Seviyesi</td>
    <td class="ikincisutun"><asp:Label ID="OCCDeleteLevel" runat="server" Text="N/A" ></asp:Label>
                        &nbsp;<asp:Label ID="Label5" runat="server" Text=" " Visible="false"></asp:Label></td>
    <td class="ucuncusutun"> <asp:Button ID="Button1" runat="server" Text="Göster" CssClass="button03" /></td>
  </tr>
  <tr>
    <td colspan="3" class="birincisutun">&nbsp;</td>
  </tr>
</table>
        <table width="900" id="OCCDataGridtable" runat="server" >
  <tr>
    <td><asp:datagrid  id="DG_OCCTable"  runat="server" AllowPaging="True" PageSize="10" AutoGenerateColumns="False" width="900px" height="66%" >
				<FooterStyle Font-Size="11px" Font-Names="Arial" ForeColor="White" BackColor="#A2547F"></FooterStyle>
				<ItemStyle Font-Size="11px" Font-Names="Arial" BackColor="Lavender"></ItemStyle>
				<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
				<Columns>
					<asp:TemplateColumn>
                                        <ItemTemplate>
                                             <asp:LinkButton ID="lnkSec" Runat="server"  OnClientClick="Confirm()" CommandName="view">Sil</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="SiraNo" HeaderText="#">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="seqno" HeaderText="OCC Seq No">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="billing_account_id" HeaderText="Billing Account">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="billing_account_name" HeaderText="Billing Account Adı">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
					<asp:BoundColumn DataField="Recurring" HeaderText="Yenileme" DataFormatString="{0:dd.MM.yyyy}">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>
					</asp:BoundColumn>
                    <asp:BoundColumn DataField="Number_of_times_to_bill" HeaderText="Faturalanma Adedi">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>	
					</asp:BoundColumn>
                    <asp:BoundColumn DataField="amount" HeaderText="Miktar" >
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>	
					</asp:BoundColumn>
                    <asp:BoundColumn DataField="Comment" HeaderText="Yorum">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>	
					</asp:BoundColumn>
                    <asp:BoundColumn DataField="valid_from" HeaderText="Geçerlilik Süresi">
						<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#A2547F"></HeaderStyle>	
					</asp:BoundColumn>

				</Columns>
				<PagerStyle Font-Size="11px" Font-Names="Arial" HorizontalAlign="Right" ForeColor="White" BackColor="#A2547F"
					Mode="NumericPages"></PagerStyle>
			</asp:datagrid></td>
  </tr>
</table>

    </div>
        <div id="light" runat="server"  class="white_content">
            <img src="../gif/gif-load.gif" /><br /><br />İŞLEMİNİZ YAPILIYOR LÜTFEN BEKLEYİNİZ</div>
		<div id="fade" runat="server" class="black_overlay"></div>
    
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="groupMSISDN" />
          <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="groupCustCode" />
    </form>
</body>
</html>
